import App from '../App'
import Main from '../views/Main'
import Dis from '../views/Dis'
import Si from '../views/404'
import ClassZ from '../views/classIndex'



import { BrowserRouter,Route,Switch } from 'react-router-dom'
const BaseRouter = () =>{
    return(
        <BrowserRouter>
        <Switch>
            <Route exact path="/" component={App}></Route>
            <Route exact path="/Main" component={Main}></Route>
            <Route exact path="/Dis" component={Dis}></Route>
            <Route exact path="/ClassZ" component={ClassZ}></Route>
            <Route exact component={Si}></Route>

        </Switch>
    </BrowserRouter>
    )
}
export default BaseRouter